-
Notifications
You must be signed in to change notification settings - Fork 22.7k
Update Web API Response: status property: add '0' status value #39533
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
@@ -17,6 +17,8 @@ For example, `200` for success, `404` if the resource could not be found. | |||
An unsigned short number. | |||
This is one of the [HTTP response status codes](/en-US/docs/Web/HTTP/Reference/Status). | |||
|
|||
A value is `0` is returned for an [‘opaque’ filtered response](https://fetch.spec.whatwg.org/#concept-filtered-response-opaque) (whose type is `opaque` or `opaqueredirect`), or for a [network error response](https://fetch.spec.whatwg.org/#concept-network-error) (whose type is `error`). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[mdn-linter] reported by reviewdog 🐶
A value is `0` is returned for an [‘opaque’ filtered response](https://fetch.spec.whatwg.org/#concept-filtered-response-opaque) (whose type is `opaque` or `opaqueredirect`), or for a [network error response](https://fetch.spec.whatwg.org/#concept-network-error) (whose type is `error`). | |
A value is `0` is returned for an ['opaque' filtered response](https://fetch.spec.whatwg.org/#concept-filtered-response-opaque) (whose type is `opaque` or `opaqueredirect`), or for a [network error response](https://fetch.spec.whatwg.org/#concept-network-error) (whose type is `error`). |
Preview URLs External URLs (1)URL:
|
@@ -17,6 +17,8 @@ For example, `200` for success, `404` if the resource could not be found. | |||
An unsigned short number. | |||
This is one of the [HTTP response status codes](/en-US/docs/Web/HTTP/Reference/Status). | |||
|
|||
A value is `0` is returned for an [‘opaque’ filtered response](https://fetch.spec.whatwg.org/#concept-filtered-response-opaque) (whose type is `opaque` or `opaqueredirect`), or for a [network error response](https://fetch.spec.whatwg.org/#concept-network-error) (whose type is `error`). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A value is `0` is returned for an [‘opaque’ filtered response](https://fetch.spec.whatwg.org/#concept-filtered-response-opaque) (whose type is `opaque` or `opaqueredirect`), or for a [network error response](https://fetch.spec.whatwg.org/#concept-network-error) (whose type is `error`). | |
A value is `0` is returned for a response whose {{domxref("Response.type", "type")}} is `opaque`, `opaqueredirect`, or `error`. |
(it's better to cross-link to MDN's own documentation for type
, which can then explain in one place what the different types mean)
Description
Add status '0' to response values for fetch API response.
Motivation
A 0 response can be seen in addition to the HTTP response status codes indicated.
Additional details
Fetch standard references included in update.
Related issues and pull requests